package main

var ( //这种分解的写法,一般用于声明全局变量
	gA int
	gB bool
)

func main() {
	var a int
	println("a=", a)

	var b int = 100
	println("b=", b)

	var c = 200
	println("c=", c)
	d := 300
	println("d=", d)
	d = 400
	println("重新赋值后的d=", d)
	//d:=500不能重新初始化

	var xx, yy = 100, 200
	println("xx=", xx, "yy=", yy)
	var kk, ll = 300, "abc"
	println("kk=", kk, "ll=", ll)
}
